package models

type Job struct {
	Name string
	Info []JobInfo
}

type JobInfo struct {
	DurationMillis	int64
	StartTimeMillis	int64
	EndTimeMillis	int64
	ID				string
	Name			string
	QueueDurationMillis	int64
	Status			string
	Stages 			[]Stage	`json:"stages"`
}

type Stage struct {
	URLs           map[string]map[string]string `json:"_links"`
	ID             string
	Name           string
	Status         string
	StartTime      int64 `json:"startTimeMillis"`
	Duration       int64 `json:"durationMillis"`
	StageFlowNodes []FlowNode
	ParentNodes    []int64
}

type FlowNode struct {
	DurationMillis int64
	ExecNode	string
	ID string
	Name string
	ParameterDescription	string
	ParentNodes		[]string
	PauseDurationMillis int64
	StartTimeMillis	int64
	Status	string
	URLs    map[string]map[string]string `json:"_links"`
}